package com.yenlien.traceyun.control.dao;


import com.yenlien.traceyun.control.entity.LevelTop;
import com.yenlien.traceyun.webase.dao.BaseJpaDao;
import org.springframework.data.jpa.repository.Query;

public interface LevelTopDao extends BaseJpaDao<LevelTop> {


    @Query(value = "select name,id,create_time from t_level_top where name=?1", nativeQuery = true)
    LevelTop finbyName(String name);

    @Query(value = "select name,id,create_time from t_level_top where id=?1", nativeQuery = true)
    LevelTop findById(String id);
}
